﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using System.Data.Linq.Mapping;
using Microsoft.Phone.Data.Linq.Mapping;

namespace Wwtfly.CHY.Model
{
    /// <summary>
    /// 用户信息
    /// </summary>
    [Index(Columns = "UserName", IsUnique = true, Name = "IX_UserInfo_UserName")]
    [Table]
    public class UserInfo
    {
        /// <summary>
        /// id
        /// </summary>
        [Column(IsPrimaryKey = true,
             IsDbGenerated = true,
            DbType = "INT NOT NULL Identity", AutoSync = AutoSync.OnInsert)]//记得要设置一个主键哦
        public int ID { get; set; }
        /// <summary>
        /// 用户名
        /// </summary>
        [Column]
        public string UserName { get; set; }
        
        /// <summary>
        /// 密码
        /// </summary>
        [Column]
        public string Pwd { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        [Column]
        public DateTime CreateTime { get; set; }

        /// <summary>
        /// 修改时间
        /// </summary>
        [Column]
        public DateTime UpdateTime { get; set; }

    }
}
